﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace models
{
   public class User
    {
        /// <summary>
        /// 我是无情老电话
        /// </summary>请问
        /// 五十年代
        /// 刘林加入战斗
        /// 小飞机加入，请求支援123
        /// TRTTTRT

        //用户表 模型
        private int id;
        private string uid;//账号
        private string pwd;//密码
        private string uName;//昵称
        private string sex;//性别
        private string birthday;//生日
        private decimal phone;//电话
        private string email;//电子邮箱
        public User() { }

        public User(string uid, string pwd, string uName, string sex, string birthday, decimal phone, string email)
        {
            this.uid = uid;
            this.pwd = pwd;
            this.uName = uName;
            this.sex = sex;
            this.birthday = birthday;
            this.phone = phone;
            this.email = email;
        }

        public User(int id, string uid, string pwd, string uName, string sex, string birthday, decimal phone, string email)
        {
            this.id = id;
            this.uid = uid;
            this.pwd = pwd;
            this.uName = uName;
            this.sex = sex;
            this.birthday = birthday;
            this.phone = phone;
            this.email = email;
        }
        public User(int id,string uName, string sex, string birthday, decimal phone, string email)
        {
            this.id = id;
            this.uName = uName;
            this.sex = sex;
            this.birthday = birthday;
            this.phone = phone;
            this.email = email;
        }
        public int Id { get => id; set => id = value; }
        public string Uid { get => uid; set => uid = value; }
        public string Pwd { get => pwd; set => pwd = value; }
        public string UName { get => uName; set => uName = value; }
        public string Sex { get => sex; set => sex = value; }
        public string Birthday { get => birthday; set => birthday = value; }
        public decimal Phone { get => phone; set => phone = value; }
        public string Email { get => email; set => email = value; }
    }
}
